package Day06;

public class Demo02 {
    public static void main(String[] args) {
        //构造方法的重载
        Person03 p = new Person03("何周华",14);
        Person03 p1 = new Person03("刘焮");
        p.say();
        p1.say();

    }
}
class Person03{
    String name;
    int age;
    Person03(String name1,int age1){
        name = name1;
        age = age1;
    }
    Person03(String name1){
        name = name1;
    }

    void say(){
        System.out.println("我叫 " + name + " 年龄 " + age);
    }
}
